package com.umeng.analytics.pro;

public class cf extends cm {
    public static final int a = 0;
    public static final int b = 1;
    public static final int c = 2;
    public static final int d = 3;
    public static final int e = 4;
    public static final int f = 5;
    public static final int g = 6;
    public static final int h = 7;
    protected int i;
    private static final dk j;
    private static final da k;
    private static final da l;
    private static final long m = 1;

    static {
        j = new dk("TApplicationException");
        k = new da("message", (byte) 11, (short) 1);
        l = new da("type", (byte) 8, (short) 2);
    }

    public cf() {

        this.i = 0;
    }

    public cf(int arg2) {

        this.i = 0;
        this.i = arg2;
    }

    public cf(int arg2, String arg3) {
        super(arg3);
        this.i = 0;
        this.i = arg2;
    }

    public cf(String arg2) {
        super(arg2);
        this.i = 0;
    }

    public static cf a(df arg5) throws cm {
        arg5.j();
        String v1 = null;
        int v0 = 0;
        while (true) {
            da v2 = arg5.l();
            if (v2.b == 0) {
                break;
            }

            switch (v2.c) {
                case 1: {
                    if (v2.b == 11) {
                        v1 = arg5.z();
                        break;
                    }

                    di.a(arg5, v2.b);
                    break;
                }
                case 2: {
                    if (v2.b == 8) {
                        v0 = arg5.w();
                        break;
                    }

                    di.a(arg5, v2.b);
                    break;
                }
                default: {
                    di.a(arg5, v2.b);
                    break;
                }
            }

            label_10:
            arg5.m();
        }

        arg5.k();
        return new cf(v0, v1);
    }

    public int a() {
        return this.i;
    }

    public void b(df arg2) throws cm {
        arg2.a(cf.j);
        if (this.getMessage() != null) {
            arg2.a(cf.k);
            arg2.a(this.getMessage());
            arg2.c();
        }

        arg2.a(cf.l);
        arg2.a(this.i);
        arg2.c();
        arg2.d();
        arg2.b();
    }
}

